﻿using System.Collections.Generic;

namespace Resn.WhuPub.BIL
{
        /// <summary>
        ///定义书籍管理器的属性和方法
        /// </summary>
        public interface IBookManager
        {
                /// <summary>
                ///获取书籍集合
                /// </summary>
                /// <value>
                ///书籍集合
                /// </value>
                List<IBook> Books { get; }

                /// <summary>
                ///获取本社书籍集合
                /// </summary>
                /// <value>
                ///本社书籍集合
                /// </value>
                List<IBook> OwnBooks { get; }

                #region 方法

                /// <summary>
                ///创建书籍
                /// </summary>
                /// <param name="name">名称</param>
                /// <param name="code">代码</param>
                /// <param name="categoryLevel">层次</param>
                /// <returns>
                ///创建的书籍对象
                /// </returns>
                IBook CreateBook();

                /// <summary>
                /// 从EXCEL文件加载书籍集合
                /// </summary>
                /// <param name="path">EXCEL文件路径</param>
                /// <returns>书籍</returns>
                Dictionary<IContact, List<IBook>> LoadBooksFromExcel(string path);

                #endregion 方法
        }
}